﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvansRS.Domain;
using FluentNHibernate.Mapping;

namespace AvansRS.Data.Mapping
{
    public class EntityMap : ClassMap<Entity>
    {
        public EntityMap() 
        {
            Id(x => x.ID);
            Map(x => x.InUse);
            HasMany(x => x.Registration)
                .KeyColumn("EntityID")
                .AsBag()
                .Inverse();

        }
    }
}

